package com.zhuojy.equity.mall.admin.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_flow")
public class TFlow implements Serializable {
    private static final long serialVersionUID = -1788922252478055387L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String correspondents;

    private BigDecimal revenueMoney;

    private BigDecimal outlayMoney;

    private String accountName;

    private BigDecimal accountBalance;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date businessTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date billingTime;

    private Integer userId;

    private String status;

    @TableField(exist = false)
    private TUser tuser;
    //业务字段
    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;



}
